package com.example.xueshen.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class  Students {
    @TableId(value = "student_id", type = IdType.AUTO)
    private Integer studentId;
    private int classId;

//    @NotBlank(message = "学生姓名不能为空")
    private String studentName;
//    @NotNull(message = "学生年龄不能为空")
    private int studentAge;
//    @NotNull(message = "学生性别不能为空")
    private int studentGerder;
//    @NotNull(message = "日期不能为空")
    private Date studentDate;
    @TableField(exist = false)//
    private Ban lass;


}
